
\documentclass[10pt,letterpaper]{article}
  \usepackage{helvet}
% Tamaño de la letra puede ser 10pt, 11pt, 12pt... hoja 'letter paper', 'legal paper', etc...

%---------------------------------------
%% PAQUETES DE COMPATIBLIDAD CON ESPAÑOL
%\usepackage[activeacute,spanish,es-tabla,es-nolists]{babel}
%\usepackage{lmodern}
\usepackage[utf8]{inputenc}



%\usepackage[latin1]{inputenc}

%---------------------------------------
%% PAQUETES DE OPCIONES EXTRA
\usepackage{booktabs}  
             %Permite hacer tablas más formales
\usepackage[flushleft]{threeparttable} % Agregar notes!
\usepackage{adjustbox}  										%pa auto-size de tablas y queden justo del ancho del texto
\usepackage{graphicx}               %Permite trabajar con gráficos
\usepackage[capposition=top]{floatrow} % Notas para graficos
%\usepackage{appendix}               %Permite cambiar algunas opciones de los apéndices
%\usepackage{wrapfig}                %Permite poner graficos con texto al lado
\usepackage{natbib}					% Biblostuff  
%\usepackage{subfig}                %Permite poner un gráfico con múltiples imágenes
%\usepackage{sidecap}               %Permite poner la descripción de las imágenes a un lado
%\usepackage{rotating}              %Permite hacer tablas rotadas
\usepackage{color}                  %Permite cambiar el color del texto.. \color{green}...
\usepackage{url}                    %Permite poner direcciones web o emails... \url{http:...}
\usepackage{amsmath}                %Permite poner ecuaciones más fácilmente
\usepackage{amsfonts}               %Permite usar otras fuentes típicas de ecuaciones
%\usepackage[framed,numbered]{mcode} %Permite poner codigo Matlab \mcode{} o con \begin{lstlisting}[firstnumber=1,framerule=0.2pt]...
% ojo que se puede hacer \lstinputlisting[firstline=6, lastline=15]{/SOME/PATH/FILENAME.M}
%\usepackage{enumerate}              %Permite elegir el tipo de enumeracion \...enumerate}[a)][{ej} 1]
%\usepackage{mdwlist}                %Permite poner \suspend{} - \resume{} en un enumerate, (se instala mdwtools)

%\usepackage{authblk}	% Permite autores con afiliacion:
%\author[1]{Alice Smith}
%\author[2]{Bob Jones}
%\affil[1]{Department of Mathematics, University X}
%\affil[2]{Department of Biology, University Y}

\usepackage{caption}
\usepackage{subcaption}
%\begin{figure}[h]
%\caption{RD plots for SMS, 2017}
%\label{figS2017}
%\begin{subfigure}[b]{0.5\textwidth}
%\includegraphics[width=\textwidth]{figures/all_S_agregadas_2018.png}
%\end{subfigure}
%\begin{subfigure}[b]{0.5\textwidth}
%\includegraphics[width=\textwidth]{figures/all_S_cambiaTop1_2018.png}
%\end{subfigure}
%\end{figure}
\usepackage{multirow}
\usepackage{array} % Permite fijar ancho de columnas
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
\newcolumntype{C}[1]{>{\PreserveBackslash\centering}p{#1}}
\newcolumntype{R}[1]{>{\PreserveBackslash\raggedleft}p{#1}}
\newcolumntype{L}[1]{>{\PreserveBackslash\raggedright}p{#1}}
%\begin{tabular}{llR{1.7cm}@{}lrR{1.7cm}@{}lR{1cm}R{1cm}R{1cm}R{1cm}R{1cm}}
%---------------------------------------
%% PAQUETES DE COMPATIBLIDAD CON PDF
\usepackage[pdfcreator=Felipe,bookmarks=true,colorlinks=false]{hyperref}    % Activa links en PDFs.. tiene que ir al final
\usepackage[all]{hypcap}                                    % Links de tablas y figuras lleva a la figura no al caption.. después de hyperref

%---------------------------------------
%% MÁRGENES
\usepackage[margin=4cm]{geometry}

\begin{document}

%Table generated with cell2latex.m  on  20-Aug-2021 13:36:54

\begin{table}[htbp]
\centering
\caption{RD Estimates of Platform Pop-Up Effects on Enrolled School Outcomes\label{tab:RDpopup-enrolledOutcomes}}
\begin{adjustbox}{max width=\textwidth,max totalheight=\textheight-2\baselineskip}
\begin{threeparttable}
%\footnotesize
\begin{tabular}{lrrrr}
\addlinespace
\toprule
  &\multicolumn{1}{c}{(1)} &\multicolumn{1}{c}{ } &\multicolumn{1}{c}{(2)} &\multicolumn{1}{c}{(3)}\\
  &\multicolumn{1}{c}{Pooled} &\multicolumn{1}{c}{ } &\multicolumn{1}{c}{Pooled} &\multicolumn{1}{c}{}\\
  &\multicolumn{1}{c}{} &\multicolumn{1}{c}{ } &\multicolumn{1}{c}{IV} &\multicolumn{1}{c}{$E[Y|X=0.3^{-}]$}\\\midrule

\\
\multicolumn{5}{l}{\textbf{A. First Stage and enrollment}} \\
Add any  & 0.216 &   &  & 0.199 \\ 
  & (0.010) &   &  &  \\ 
Enrolled  & -0.004 &   & -0.019 & 0.966 \\ 
  & (0.004) &   & (0.018) &  \\ 
\\
\multicolumn{5}{l}{\textbf{B. Attributes of enrolled school}} \\
Distance (km)  & 0.050 &   & 0.239 & 3.022 \\ 
  & (0.243) &   & (1.158) &  \\ 
Have value added measure$|$grade$\leq$8  & 0.014 &   & 0.067 & 0.753 \\ 
  & (0.010) &   & (0.049) &  \\ 
Value added$|$grade$\leq$8  & 0.022 &   & 0.103 & 0.138 \\ 
  & (0.011) &   & (0.051) &  \\ 
Per teacher spending (1000USD)  & 0.788 &   & 3.714 & 30.646 \\ 
  & (0.221) &   & (1.065) &  \\ 
Per student spending (1000USD)  & 0.002 &   & 0.007 & 2.245 \\ 
  & (0.015) &   & (0.071) &  \\ 
With copayment fee  & 0.033 &   & 0.152 & 0.279 \\ 
  & (0.009) &   & (0.044) &  \\ 
School monthly fee (USD)  & 2.016 &   & 9.237 & 21.839 \\ 
  & (0.815) &   & (3.778) &  \\ 
Share of vulnerable students  & -0.006 &   & -0.029 & 0.567 \\ 
  & (0.003) &   & (0.013) &  \\ 
Total enrollment per grade  & 8.621 &   & 39.467 & 98.981 \\ 
  & (1.699) &   & (7.964) &  \\ 
   &   &   &   &   \\ 
NL  & 20,359 &   & 20,359 &  \\ 
%  &  &   &  &  \\ 
NR  & 21,145 &   & 21,145 &  \\ 
%  &  &   &  &  \\ 
\bottomrule
%\addlinespace
\end{tabular}
\begin{tablenotes}
\small
\item \textit{Notes.} Local linear RD estimates of popup effects from warning popup on application platform. Computed using triangular kernel with bandwidth 0.1. Heteroskedasticity-robust nearest neighbor variance estimator with minimum of 3 neighbors reported in parentheses; computed as in \citet{calonico2014robust}. IV estimates reported in second column show the instrumental variable specifications (fuzzy RD), where the endogenous regressor is the add any school indicator. Distance is only computed for 44\% of observations that have reliable geocoding and whos enrolled school's regions are the same as the application's regions. Value added estimates are calculated using 53\% of the observations  that (1) are in grade 8 or below and (2) the enrolled school has the measure available. See section \ref{sec:schoolXRD} for variable definitions.
\end{tablenotes}
\end{threeparttable}
\end{adjustbox}
\end{table}

\clearpage

\begin{figure}[H]
\centering
\caption{RD Plots}
\label{}
\makebox[\textwidth][c]{%
	%[1,1]
	\begin{subfigure}[b]{0.400\textwidth}
		\centering
		\caption{\centering \_P\_a\_pooled.png}
		%\label{ }
		\includegraphics[scale=0.450]{_P_a_pooled.png}
	\end{subfigure}
	%[1,2]
	\begin{subfigure}[b]{0.400\textwidth}
		\centering
		\caption{\centering \_P\_e\_pooled.png}
		%\label{ }
		\includegraphics[scale=0.450]{_P_e_pooled.png}
	\end{subfigure}
	%[1,3]
	\begin{subfigure}[b]{0.400\textwidth}
		\centering
		\caption{\centering \_P\_dist\_pooled.png}
		%\label{ }
		\includegraphics[scale=0.450]{_P_dist_pooled.png}
	\end{subfigure}
} % End of \makebox
	\vspace{.02cm}

\makebox[\textwidth][c]{%
	%[2,1]
	\begin{subfigure}[b]{0.400\textwidth}
		\centering
		\caption{\centering \_P\_hva\_pooled.png}
		%\label{ }
		\includegraphics[scale=0.450]{_P_hva_pooled.png}
	\end{subfigure}
	%[2,2]
	\begin{subfigure}[b]{0.400\textwidth}
		\centering
		\caption{\centering \_P\_va\_pooled.png}
		%\label{ }
		\includegraphics[scale=0.450]{_P_va_pooled.png}
	\end{subfigure}
	%[2,3]
	\begin{subfigure}[b]{0.400\textwidth}
		\centering
		\caption{\centering \_P\_teachSp\_pooled.png}
		%\label{ }
		\includegraphics[scale=0.450]{_P_teachSp_pooled.png}
	\end{subfigure}
} % End of \makebox
	\vspace{.02cm}

\makebox[\textwidth][c]{%
	%[3,1]
	\begin{subfigure}[b]{0.400\textwidth}
		\centering
		\caption{\centering \_P\_studSp\_pooled.png}
		%\label{ }
		\includegraphics[scale=0.450]{_P_studSp_pooled.png}
	\end{subfigure}
	%[3,2]
	\begin{subfigure}[b]{0.400\textwidth}
		\centering
		\caption{\centering \_P\_hasFee\_pooled.png}
		%\label{ }
		\includegraphics[scale=0.450]{_P_hasFee_pooled.png}
	\end{subfigure}
	%[3,3]
	\begin{subfigure}[b]{0.400\textwidth}
		\centering
		\caption{\centering \_P\_fee\_pooled.png}
		%\label{ }
		\includegraphics[scale=0.450]{_P_fee_pooled.png}
	\end{subfigure}
} % End of \makebox
	\vspace{.02cm}

\makebox[\textwidth][c]{%
	%[4,1]
	\begin{subfigure}[b]{0.400\textwidth}
		\centering
		\caption{\centering \_P\_shareVul\_pooled.png}
		%\label{ }
		\includegraphics[scale=0.450]{_P_shareVul_pooled.png}
	\end{subfigure}
	%[4,2]
	\begin{subfigure}[b]{0.400\textwidth}
		\centering
		\caption{\centering \_P\_totalEnrollG\_pooled.png}
		%\label{ }
		\includegraphics[scale=0.450]{_P_totalEnrollG_pooled.png}
	\end{subfigure}
	} % End of \makebox
%\floatfoot{\scriptsize \textit{Notes:} }
\end{figure}

\end{document}